package org.zhongyin.DesignPattern.AbstractFactory;

public class ShapeFactory extends AbstractFactory{
	public Shape getShape(String ShapeType){
		if(ShapeType == null){
			return null;
		}
		
		if(ShapeType.equalsIgnoreCase("Circle")){
			return new Circle();
		}
		else if(ShapeType.equalsIgnoreCase("Rectangle")){
			return new Rectangle();
		}
		else if(ShapeType.equalsIgnoreCase("Square")){
			return new Square();
		}
		else{
			return null;
		}
	}
	
	public Color getColor(String ColorType){
		return null;
	}

}
